<?php

$name = $_POST['name'];
if(file_exists("uploads/$name")){
    unlink("uploads/$name");
}
